//
//  UIWindow+TYZAdd.m
//  JJKegelYoga
//
//  Created by Bin Tang on 2022/11/11.
//

#import "UIWindow+TYZAdd.h"

@implementation UIWindow (TYZAdd)

+ (UIWindow *)key
{
    if (@available(iOS 13, *))
    {
        return [UIApplication sharedApplication].windows.firstObject;
    }
    else
    {
        return [UIApplication sharedApplication].keyWindow;
    }
}


@end
